@import com.mgfireworks.mgplatform.mgadmin.product.model.ProductDetail
@extends("/form_template")
@args Boolean isEdit
@args ProductDetail productDetail
@{
	if(productDetail==null){
		productDetail=new ProductDetail();
	}
}
<div class="row form-horizontal form-label-left">
   <div class="col-md-12 col-sm-12 col-xs-12">
     <div class="x_panel">
       <div class="x_title">
         <h2>@if(isEdit){修改}else{添加}产品详情</h2>
         <div class="clearfix"></div>
       </div>
       <div class="x_content">
	       <div class="form-group">
	         <label class="control-label col-md-3 col-sm-3 col-xs-12" for="productId">产品编号<span class="required">*</span>
	         </label>
	         <div class="col-md-6 col-sm-6 col-xs-12">
	           <input type="text" id="productId" name="productId" value="@productDetail.getProductId()" placeholder="请输入产品编号" required="required" @if(isEdit&&true){readonly="readonly"} class="form-control col-md-7 col-xs-12">
	         </div>
	       </div>
	       <div class="form-group">
	         <label class="control-label col-md-3 col-sm-3 col-xs-12" for="description">产品描述
	         </label>
	         <div class="col-md-6 col-sm-6 col-xs-12">
	           <input type="text" id="description" name="description" value="@productDetail.getDescription()" placeholder="请输入产品描述"  @if(isEdit&&false){readonly="readonly"} class="form-control col-md-7 col-xs-12">
	         </div>
	       </div>
	       <div class="form-group">
	         <label class="control-label col-md-3 col-sm-3 col-xs-12" for="images">图片列表
	         </label>
	         <div class="col-md-6 col-sm-6 col-xs-12">
	           <input type="text" id="images" name="images" value="@productDetail.getImages()" placeholder="请输入图片列表"  @if(isEdit&&false){readonly="readonly"} class="form-control col-md-7 col-xs-12">
	         </div>
	       </div>
	       <div class="form-group">
	         <label class="control-label col-md-3 col-sm-3 col-xs-12" for="detailContent">详情
	         </label>
	         <div class="col-md-6 col-sm-6 col-xs-12">
	           <input type="text" id="detailContent" name="detailContent" value="@productDetail.getDetailContent()" placeholder="请输入详情"  @if(isEdit&&false){readonly="readonly"} class="form-control col-md-7 col-xs-12">
	         </div>
	       </div>
       </div>
     </div>
   </div>
</div>